package eu.integration;
/**
 * 包流向起点
 * @author WZZ
 *
 */
public class PackageOrigin {
	
	int from;

	int signal;
	
	public PackageOrigin(int from, int signal) {
		super();
		this.from = from;
		this.signal = signal;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PackageOrigin other = (PackageOrigin) obj;
		if (from != other.from)
			return false;
		if (signal != other.signal)
			return false;
		return true;
	}

	public int getFrom() {
		return from;
	}

	public int getSignal() {
		return signal;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + from;
		result = prime * result + signal;
		return result;
	}

	public void setFrom(int from) {
		this.from = from;
	}

	public void setSignal(int signal) {
		this.signal = signal;
	}

	
}
